<?php
class FaceintegrationBaseModel{
    // Existing properties.
    public $rawData;
    public $id;
    public $title;
    public $created;
    public $changed;
    public $userId;
    public $body;

    public static function initialize($node,&$model)
    {
        $model->rawData = $node;
        $model->id = $node->nid;
        $model->title = $node->title;
        $model->created = $node->created;
        $model->changed = $node->changed;
        $model->userId = $node->uid;

        $temp = field_get_items('node', $node, 'body');
        $model->body = $temp[0]['value'];
    }
}
?>
